package org.example.enums;

/**
 * @ Author     ：hanxi
 * @ Date       ：Created in 11:40 2024/1/3
 * @ Description：
 */
public enum SuffixNameTypeEnum {

    FIXED_PRICE(1,"固定价格"),SEARCH(2,"纳网查询");
    private int id;

    private String desc;

    SuffixNameTypeEnum(int id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public static SuffixNameTypeEnum getEnum(int id){
        for (SuffixNameTypeEnum enums: SuffixNameTypeEnum.values()){
            int enumsId = enums.getId();
            if(id == enumsId){
                return enums;
            }
        }
        return null;
    }

    public int getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }
}
